package com.huangguolin.cloud.role.entity;

/**
 * 搜索实体类
 */
public class SearchRoleEntity {
    /**
     * 角色名称
     */
    private String roleName;

    private String[] roleNameArray = null;

    public String[] getRoleNameArray() {
        return roleNameArray;
    }

    public void setRoleNameArray(String[] roleNameArray) {
        this.roleNameArray = roleNameArray;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    @Override
    public String toString() {
        return "SearchRoleEntity{" +
                "roleName='" + roleName + '\'' +
                '}';
    }

    public void deal(){
        if(!"undefined".equals(roleName) && !"".equals(roleName)){
            roleNameArray = roleName.split(",");
        }

    }
}
